Release 10.1A: OpenEdge Data Management:
SQL Development
Transactions and isolation levels
SQL defines how a database is expected to behave in different situations. These situations are defined as transaction isolation levels. The isolation levels are defined by possible phenomena that might exist in the database at the four possible levels. Before you can understand isolation levels, you must first understand what these phenomena are.
The following phenomena are used to define isolation levels.
Dirty read
A dirty read occurs when one user is updating or inserting a record while a different user is reading it, but the work is not yet committed to the database, as shown in Example 8–1.
Nonrepeatable read
A nonrepeatable read occurs when one user is repeating a read operation on the same records but has updated values, as shown in Example 8–2.
Phantom read
A phantom read occurs when one user is repeating a read operation on the same records, but has new records in the results set, as shown in Example 8–3.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |